package com.javaee.lpr.mapper;

import com.javaee.lpr.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface NoticeMapper {

    Integer insert(Notice notice);

    Integer update(Notice notice);

    Integer deleteById(Integer id);

    List<Notice> selectAll();

    Notice findByTitle(String title);

}
